package com.jxl.springboot.game.mapper;

import com.jxl.springboot.game.pojo.GameInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 游戏信息Mapper
 *
 * @author 江雪林
 * @create 2021-03-29
 */
public interface GameInfoMapper {
    List<GameInfo> findAllPassedGame(@Param("index") Integer index, @Param("size") Integer size);

    int findCountPassedGame();

    int findCountByUserId(@Param("id") Integer id);

    List<GameInfo> findGameByUserId(@Param("id") Integer id, @Param("index") Integer index, @Param("size") Integer size);

    GameInfo findGameById(@Param("id") Integer id);

    int updateGameInfo(GameInfo gameInfo);
}
